home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
6_11.lha
/
6_11
/
6_11_pos.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
412b
|
19 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
*
The unary plus operator on type arbint.
/
include <arbint.h>
rbint operator+(const arbint& j)
int nlen = j.p->length;
ARB_type *nv = new ARB_type[nlen];
memcpy((char*)nv, (char*)j.p->value,
nlen * sizeof(ARB_type));
arbint k(nv, nlen);
return k;